package com.campus.schedule.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.campus.common.mybatis.entity.IntegerIdBaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * <p>
 * 操作员表
 * </p>
 *
 * @author ZhaoYuJie
 * @since 2025-05-21
 */
@Getter
@Setter
@TableName("admin_user")
@ApiModel(value = "AdminUser对象", description = "操作员表")
public class AdminUser extends IntegerIdBaseEntity<AdminUser> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("登录用户名，唯一")
    @TableField("username")
    private String username;

    @ApiModelProperty("加密后的密码")
    @TableField("password")
    private String password;

    @ApiModelProperty("密码加密盐值")
    @TableField("salt")
    private String salt;

    @ApiModelProperty("用户真实姓名")
    @TableField("real_name")
    private String realName;

    @ApiModelProperty("电子邮箱")
    @TableField("email")
    private String email;

    @ApiModelProperty("手机号码")
    @TableField("phone")
    private String phone;

    @ApiModelProperty("账号状态：1-启用, 0-禁用")
    @TableField("status")
    private Integer status;

    @ApiModelProperty("头像URL")
    @TableField("avatar")
    private String avatar;

    @ApiModelProperty("是否超级管理员：1-是, 0-否")
    @TableField("is_super_admin")
    private Integer isSuperAdmin;

    @Override
    public Serializable pkVal() {
        return null;
    }
}
